import React from 'react'
import { HomeOutlined, CloudUploadOutlined, SettingOutlined } from '@ant-design/icons'
const Home = React.lazy(() => import('../views/home'));
const Set = React.lazy(() => import('../views/set'));
const Upload = React.lazy(() => import('../views/upload'));
const MainLayout = React.lazy(() => import('../layout/mainLayout'));

export const MainLayOutChildren = [{
  path: '/',
  element: <Home></Home>,
  title: '首页',
  icon: <HomeOutlined />
},{
  path: '/upload',
  element: <Upload></Upload>,
  title: '上传',
  icon: <CloudUploadOutlined></CloudUploadOutlined>
},{
  path: '/set',
  element: <Set></Set>,
  title: '设置',
  icon: <SettingOutlined />
}]

export const Routes_List = [{
  path: '/',
  element: <MainLayout></MainLayout>,
  children: MainLayOutChildren
}]
